package com.yyq.sqlSession;

import com.yyq.pojo.Configuration;
import com.yyq.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * @Author yuanyueqiang
 * @Date 2021-11-27 23:04
 */
public interface Executor {

    public <T> List<T> query(Configuration configuration, MappedStatement mappedStatement,Object...params) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException, IntrospectionException, InvocationTargetException, Exception;

    public int update(Configuration configuration, MappedStatement mappedStatement,Object...params) throws  Exception;
}
